﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using System.Windows.Input;
using Mesuro.GUI.Utilities;

namespace Mesuro.GUI {
	/// <summary>
	/// Interaction logic for App.xaml
	/// </summary>
	public partial class App : Application {
		public static Microsoft.Win32.OpenFileDialog OpenDialog = new Microsoft.Win32.OpenFileDialog();
		public static Microsoft.Win32.SaveFileDialog SaveDialog = new Microsoft.Win32.SaveFileDialog();
		public static string FormatCategory_Image = "Image";

		static App() {
			FileFormatRegistry.RegisterFormat( "Portable Network Graphics", "png", FormatCategory_Image );
			FileFormatRegistry.RegisterFormat( "Bitmap", "bmp", FormatCategory_Image );
			FileFormatRegistry.RegisterFormat( "Joint Photographic Experts Group", new string[] { "jpg", "jpeg" }, FormatCategory_Image );
			FileFormatRegistry.RegisterFormat( "Graphics Interchange Format", "gif", FormatCategory_Image );
			FileFormatRegistry.RegisterFormat( "Tagged Image File Format", "tiff", FormatCategory_Image );
			FileFormatRegistry.RegisterFormat( "Windows Media Photo", "wmp", FormatCategory_Image );
		}
	}
}
